import config_setting
from folder_scanner import read_and_parse_json_files
from util_store import append_entry


def export_name(path, content):
    append_entry(export_file_path, content["Id"], content["Name"])
    pass

folder_path = r"E:\PlayniteMetadata\games"  # 替换为你的文件夹路径
export_file_path = f"assets/step_1_1_export_name/name_{config_setting.batch_name}.txt"
read_and_parse_json_files(folder_path, export_name)